import request from 'utils/request.js'
// 对用户模块请求api的封装
/**
 *
 * @param {*} data {mobile,data,agree}
 * @returns
 */
export const login = (data) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'POST',
    data,
  })
}
export const getUserInfo = () => {
  return request({
    url: '/v1_0/user/profile',
    method: 'GET',
  })
}
